package com.lucy.auth.controller;

import cn.dev33.satoken.stp.StpUtil;
import com.lucy.common.domain.ResponseDTO;
import com.lucy.common.redis.RedisCache;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.RestController;

@RestController
@RequestMapping("sso")
@Api(tags = "单点登录")
public class SSOController {
    @Autowired
    RedisCache redisCache;



    @PostMapping("auth")
    @ApiOperation(value = "SSO鉴权")
    public ResponseDTO<Object> ssoAuth(@RequestParam("ticket") String ticket){
        // 根据ticket 置换 token

        return null;
    }


}
